package com.zn.web.dto;

/**
 * Created by yinjiawei on 2018/8/2.
 */
public class CustomerWithdrawDto {
    /**客户ID**/
    private String customerId;
    /**银行卡ID**/
    private String customerBankId;
    /**客户资金密码**/
    private String customerCapitalPassword;
    /**客户提取金额**/
    private Double withdrawAmount;

    /**开始时间**/
    private String createTimeBegin;
    /**结束时间**/
    private String createTimeEnd;
    /**订单类型 1-提现成功、2-提现失败、3-提现中、4-提现申请、5-充值成功、6-充值失败、7-充值中、8-充值申请**/
    private Integer status;
    /**订单状态描述**/
    private String statusDescribe;
    /**交易类型 1-充值 2-提现**/
    private Integer tradeType;
    /**判断是否为H5调用**/
    private Integer isH5;
    /**提现校验类型：1-提现 2-提现校验**/
    private Integer withdrawType;

    private Integer	pageNum = 0;// 当前页码
    private Integer pageSize = 20;// 当前页条数

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerBankId() {
        return customerBankId;
    }

    public void setCustomerBankId(String customerBankId) {
        this.customerBankId = customerBankId;
    }

    public String getCustomerCapitalPassword() {
        return customerCapitalPassword;
    }

    public void setCustomerCapitalPassword(String customerCapitalPassword) {
        this.customerCapitalPassword = customerCapitalPassword;
    }

    public Double getWithdrawAmount() {
        return withdrawAmount;
    }

    public void setWithdrawAmount(Double withdrawAmount) {
        this.withdrawAmount = withdrawAmount;
    }

    public Integer getPageNum() {
        return pageNum;
    }
    public void setPageNum(Integer pageNum) {
        if(pageNum != null && pageNum >=1){// 当前页
            this.pageNum = (pageNum - 1 )*20;
        }else{
            this.pageNum = pageNum;
        }

    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getCreateTimeBegin() {
        return createTimeBegin;
    }

    public void setCreateTimeBegin(String createTimeBegin) {
        this.createTimeBegin = createTimeBegin;
    }

    public String getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(String createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusDescribe() {
        return statusDescribe;
    }

    public void setStatusDescribe(String statusDescribe) {
        this.statusDescribe = statusDescribe;
    }

    public Integer getTradeType() {
        return tradeType;
    }

    public void setTradeType(Integer tradeType) {
        this.tradeType = tradeType;
    }

    public Integer getIsH5() {
        return isH5;
    }

    public void setIsH5(Integer isH5) {
        this.isH5 = isH5;
    }

    public Integer getWithdrawType() {
        return withdrawType;
    }

    public void setWithdrawType(Integer withdrawType) {
        this.withdrawType = withdrawType;
    }

    /**订单类型 提现成功、提现失败、提现中、提现申请、充值成功、充值失败、充值中、充值申请**/
    public String convertStatus(int status){
        String statusStr="";
        switch (status){
            case 1:statusStr="提现成功";break;
            case 2:statusStr="提现失败";break;
            case 3:statusStr="提现中";break;
            case 4:statusStr="提现申请";break;
            case 5:statusStr="充值成功";break;
            case 6:statusStr="充值失败";break;
            case 7:statusStr="充值中";break;
            case 8:statusStr="充值申请";break;
            default:statusStr="--";break;
        }
        return statusStr;
    }
}
